import { Line } from "./ContainerProvider";

export default function AssistLine(props: Partial<Line>) {
  const { start, end } = props;

  if (start && end) {
    const position = {
      x1: start.x,
      y1: start.y,
      x2: end.x,
      y2: end.y,
    };
    return <line {...position} strokeDasharray="3 2" stroke="#ccc"></line>;
  } else {
    return <></>;
  }
}
